package mspbots.data.manage.core.client;

import org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * mspbots.data.manage.core.client.WiseClient
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/11/12
 */
@Service("connect-wise")
public class CwWebClient extends AbstractDefaultClient {

    public CwWebClient(WebClient.Builder webBuilder,
                          ReactorLoadBalancerExchangeFilterFunction filterFunction) {
        super(webBuilder.baseUrl("http://connect-wise-client/")
                .filter(filterFunction).build());
    }
}
